<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
		include_once 'public/views/header.php';
		?>
		<?php 
			include_once 'public/home/html/qrcode.php';
			include_once 'public/home/html/alert.php';
		?>
		<?php include_once 'public/home/html/img_big.php'
		?>
		<link rel="stylesheet" href="public/css/list.css" />
		<link rel="stylesheet" href="public/xr/xrDatatable.css" />
		<script src="public/xr/xrDatatable.js"></script>
		<script src="public/js/list.js"></script>
		<script src="cust/js/academiaList.js?v=20240108"></script>
		<script src="public/home/js/function.js"></script>
		<style>
			.cart-c{
				width:400px;
				position: fixed;
				top:5px;
				right:-400px;
				background-color: #eee;
				box-shadow: -4px 4px 5px #888888;
				padding:0px!important;
				/*border-top:1px solid #999;*/
				z-index:999;
			}
			.cart-c-title{
				font-size: 14px; font-weight: bold; color:#666; height:50px; line-height: 50px; border-bottom:1px dashed #999;
				background-color: white;
			}
			.cart-c-title-icon{
				font-weight: bold;
				font-size:20px;
				width:30px;
				height:30px;
				border-radius: 3px;
				line-height: 30px;
				text-align: center;
				cursor: pointer;
			}
			.cart-c-title-icon:hover{
				background-color: #ddd;
			}
			.cart-c-box{
				overflow-y: scroll;
				overflow-x: hidden;
				padding-top:10px;
				padding-right:0px!important;
				padding-bottom:10px;
				-webkit-user-select: none;
				-moz-user-select: none;
				-ms-user-select: none;
				user-select: none;
			}
			.cart-c-box{
				background-color: white;
				padding:0px!important;
			}
			.cart-box-c::-webkit-scrollbar{
				overflow: hidden;
				display: none;
			}
			.cart-c-button{
				height:50px;
				line-height: 50px;
				background-color: white;
			}
			.show-cart-c{
				height:60px;
				width:40px;
				font-size: 25px;
				line-height: 60px;
				text-align:center;
				/*background-color: #fff;*/
				box-shadow: -4px 4px 5px #888888;
				position: absolute;
				right: 0px;
				border-radius: 5px 0px 0px 5px;
				background-color: rgba(255,255,255,0.2);
				cursor: pointer;
			}
			.show-cart-c:hover{
				background-color: rgba(255,255,255,1);
			}

			.add-button{
				background-color:#EC6C62; border-color:#EC6C62; height:25px; line-height: 25px; color:white; width:50px; border-radius:4px; text-align: center; cursor: pointer;
				font-size:12px;
				margin-top:7px;
				margin-left:0px;
				text-indent: 0px!important;
			}
			.xrTable tr th,td{width: 100px;}

			.tr-red {
				color: red;
			}
			.tr-green {
				color: green;
			}
		</style>
	</head>
	<body>
		<input type="hidden" id="unSubmit" value="<?=ResultState::UnSubmit[XPHEnum::Value]?>">
		<div class="page-container container">
			<div class="searchForm">
			    <div class="searchForm-title"><i class="icon-table searchForm-title-icon"></i>数据表格<i class="icon-double-angle-up searchFormTitleIcon"></i></div>
			    <div class="searchForm-main">
					<form id="searchForm">
					    	<input type="hidden"  id="is_add" value="<?=$is_add?>" />
							<input type="text" name='param' id="author_name" placeholder="本校兼职人员"/>
							<select name="audit_type" id="audit_type">
								<option value="-1">提交审核类型</option>
								<?php foreach ((new AuditType)->getAll() as $k => $v) : ?>
									<option value="<?=$v[XPHEnum::Value]?>"><?=$v[XPHEnum::Caption]?></option>
								<?php endforeach ?>
							</select>
					</form>
				</div>
			</div>
			<div class="operationRow">
				<button class="pageItemButton" id="save"  onclick="showDialogModal('<?=base_url()?>Admin/Academia/edit/0');"><i class="icon-edit"></i>添加</button>
				<button class="pageItemButton" style="background-color: #449E2F;" onclick="exportData();"><i class="icon-signout"></i>导出为excel</button>
			</div>
			<div class="listcontent">
				<div class='xrTableRow'>
					<table id="table" class="xrTable">
						<thead>
							<tr>
							<th name="_xrno"></th>
								<th name="_oper" style="width: 155px;">操作</th>
								<th name="_author_name" > 本校兼职人员</th>
								<th name="_dept" > 兼职机构</th>
								<th name="_post"> 兼职职务</th>
								<th name="_level"> 机构级别</th>								
								<th name="_effect"> 学校作用</th>								
								<th name="_academia"> 兼职时间</th>								
								<th name="_dept_name"> 所属单位</th>						
								<th name="_performance_score"> 业绩分</th>
								<th name="_award_year"> 业绩（成果）归属年份</th>
								<th name="_createdChar" > 添加时间</th>
								<th name="_status_char" > 状态</th>
								<th name="_is_submit_cg_char" > 是否提交成果</th>
								<th name="_is_submit_kh_char" > 是否提交考核库</th>
							</tr>
						</thead>
					</table>
				</div>
			</div>
		</div>


		<!-- 篮子 -->
		<!-- <div class="cart-c container">
			<div class="col-xs-10 cart-c-title"><img style="width:25px; height:25px; margin-right:10px; position:relative; top:-3px;" src="<?php echo base_url() ?>public/home/images/contactor.png" alt="">所属门店</div>
			<div class="col-xs-2 cart-c-title text-right"><i class="icon-double-angle-right cart-c-title-icon"></i></div>
			<iframe class="cart-c-box" src="" frameborder="0" style="height:100%; width:100%;"></iframe>	
		</div> -->

		<div class="show-cart-c hide">
			<i class="icon-double-angle-left"></i>
		</div>
	</body>
	<script>
		$("body").keydown(function() {
             if (event.keyCode == "13") {//keyCode=13是回车键
                 $('.searchButton').click();
             }
         });
		$("#role").change(function(){
			$('.searchButton').click();
		});

		$(function(){
			var is_add = $("#is_add").val();
			if(is_add == 1){
				$("#save").show();
			}else{
				$("#save").hide();
			}
		})
	</script>
</html>